package cn.kust.clock.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @author bjs
 * @date 2022/7/25 0025  10:33
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("clock_travels")
public class Travels {
    private Long id; //游记id

    private Long userId; //用户id

    private String clockIdList;//打卡的id数组

    private String title;//游记标题

    private String cover;//游记封面

    private String description;//游记简介

    private LocalDateTime gmtCreate;//游记创建时间

    private LocalDateTime gmtModified;//游记修改时间

    private Integer status;

    public Travels(Long userId, LocalDateTime gmtCreate) {
        this.userId = userId;
        this.gmtCreate = gmtCreate;
        this.status = 0;
    }
}
